package com.hntky.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hntky.entity.Doctor;
import com.hntky.service.DoctorService;
import com.hntky.mapper.DoctorMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author admin
* @description 针对表【t_doctor】的数据库操作Service实现
* @createDate 2023-05-13 18:02:48
*/
@Service
public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor>
    implements DoctorService{

    @Resource
    private DoctorMapper mapper;

    @Override
    public Page<Doctor> findPage(Page<Doctor> page, String dname) {
        return mapper.findPage(page, dname);
    }

    @Override
    public Doctor findPatients(Integer did) {

        return mapper.findPatients(did);
    }
}




